//
//  DemoBtn.m
//  MyDemo
//
//  Created by macOS on 2016/12/6.
//  Copyright © 2016年 macOS. All rights reserved.
//

#import "DemoBtn.h"

@implementation DemoBtn





+ (instancetype)buttonWithTitle:(NSString *)title{
    
    DemoBtn *btn = [self buttonWithType:UIButtonTypeSystem];
    
    [btn setTitle:title forState:UIControlStateNormal];
    
    [btn setTintColor:[UIColor blackColor]];
   
    
    btn.layer.borderColor = [UIColor blackColor].CGColor;
    btn.layer.borderWidth = 1;
    btn.layer.cornerRadius = 6;
    btn.layer.masksToBounds = YES;
    btn.titleLabel.font = [UIFont systemFontOfSize:16];
    
    return btn;
    
   
}

@end
